// 	Name: 05.c
//	Description: Chapter 6 project 5
//	Author: StableGenius
//	Date: 2020-07-08
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void) {
	int num;

	printf("Enter a number: ");
	scanf("%d", &num);
	printf("\nThe reversal is: ");

	do {
		printf("%d", num % 10);
		num /= 10;
	} while (num);

	printf("\n");

	return 0;
}
